#include <stdio.h>
main()
{	 	    		 
    int i,j,k;
    for(i=1;i<=5;i++)     //2
        for(j=1;j<=5;j++)   //2
            for(k=1;k<=5;k++)     //2
            if(i!=j&&j!=k&&i!=k)    //2
            {	 	    		 
                printf("%d,%d,%d\n",i,j,k  );   //1
            }
}	 